import DICTIONARY_LIST from 'service/apis/dictionaryList';
import Request from 'service/request';

// 台账字典
export async function getList() {
  return Request({
    url: DICTIONARY_LIST.LIST,
  });
}

// 部门字典
export async function getGroupList() {
  return Request({
    url: DICTIONARY_LIST.GROUP_LIST,
  });
}

// 设备字典
export async function getDeviceList(params) {
  return Request({
    url: DICTIONARY_LIST.GET_DEVICE_LIST,
    data: params,
    method: 'POST',
    isForm: 0,
  });
}

// 设备字典
export async function getDeviceDetail({ id }) {
  return Request({
    url: DICTIONARY_LIST.GET_DEVICE_DETAIL + id,
    isForm: 0,
  });
}

// 预置项目字典
export async function getPresetList(params) {
  return Request({
    url: DICTIONARY_LIST.GET_PRESET_LIST,
    isForm: 0,
    method: 'POST',
    data: params,
  });
}

// 保养员字典
export async function getUserList(params) {
  return Request({
    url: DICTIONARY_LIST.GET_USER_LIST,
    isForm: 0,
    method: 'POST',
    data: params,
  });
}

// 鉴定计划/执行状态
export async function getCaliDic(params) {
  return Request({
    url: DICTIONARY_LIST.GET_CALI_DIC,
    isForm: 0,
    data: params,
  });
}
